// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    userInfo: null
  }
})


/*
  "tabBar": {
    "color": "#959394",
    "selectedColor": "#f00",
    "borderStyle": "black",
    "backgroundColor": "#fff",
    "list": [
      {
        "pagePath": "pages/profile/profile",
        "iconPath": "assets/imgs/l.png",
        "selectedIconPath": "assets/imgs/icon_choose_click.png",
        "text": "首页"
      },
      {
        "pagePath": "pages/category/index",
        "iconPath": "assets/imgs/l.png",
        "selectedIconPath": "assets/imgs/icon_choose_click.png",
        "text": "分类"
      },
      {
        "pagePath": "pages/cart/index",
        "iconPath": "assets/imgs/l.png",
        "selectedIconPath": "assets/imgs/icon_choose_click.png",
        "text": "购物车"
      },
      {
        "pagePath": "pages/me/index",
        "iconPath": "assets/imgs/l.png",
        "selectedIconPath": "assets/imgs/icon_choose_click.png",
        "text": "我的"
      }
    ]
  }, */
